package com.istudy.service.interfaces;

import com.istudy.entity.User;
import com.istudy.entity.UserType;
import pers.dzk.jdk.entity.PageBean;

import java.util.List;

public interface UserService {

    boolean register(User user);

    User login(User user);

    /**
     * 根据指定用户进行相应扣费
     *
     * @param userId       用户id
     * @param videoConsume 扣费金额
     * @return 是否成功
     */
    boolean UserDeduction(String userId, String videoConsume);

    boolean repetitionLoginName(User user);

    PageBean<User> userManage(int pageNo, int pageSize);

    User userToUpdate(User user);

    boolean userUpdate(User user);
    User getUserById(int id);
    boolean updateMoney(User user);
    boolean deleteUser(User user);
    List<UserType> selectUserType();
}
